public class PermGenGC {
	public static void main(String[] args) {
		int i = 0;
		try {
			String s = "a";
			for(;; i++)
				s += s;
		} catch(Error e) {
			System.out.println("i: " + i);
			e.printStackTrace();
		}
	}
}
